package com.haredot.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class OrderVo  {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id ;

    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDateTime applyTime ;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @TableField("effect_time")
    private LocalDate effectTime ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(LocalDateTime applyTime) {
        this.applyTime = applyTime;
    }

    public LocalDate getEffectTime() {
        return effectTime;
    }

    public void setEffectTime(LocalDate effectTime) {
        this.effectTime = effectTime;
    }
}
